import React, { Component } from "react";

class Star extends Component {
  render() {
    return <div>
      {
        this.props.children
      }
      <div>Hello World</div>
      
    </div>
  }
}

class Moon extends Component{
  render(){
    return <div>🦋🦋🦋🦋🦋</div>
  }
}
export default class App extends Component {
  render() {
    return (
      <div>
        <Star>
          {/* 插入组件 */}
          <Moon></Moon>
          {/* 插入标签 */}
          <div>🐸🐸🐸🐸🐸</div>
        </Star>
      </div>
    );
  }
}
